package com.pj.wisdomlogistics.mvp.model;


import com.pj.wisdomlogistics.entity.RepairDetailInfo;
import com.pj.wisdomlogistics.entity.response.BaseResponse;
import com.pj.wisdomlogistics.mvp.frame.MvpModel;

import rx.Observable;


public class RepairDetailModel extends MvpModel {
    public Observable<BaseResponse<RepairDetailInfo>> findRepairDetail(int repairApplyID) {
        return mApiService.findRepairDetail(repairApplyID);
    }

    public Observable<BaseResponse> orderRepair(String userID , int repairApplyID) {
        return mApiService.orderRepair(userID , repairApplyID);
    }

    public Observable<BaseResponse> repairAllot(
            String userID ,
            String fixWorkerID ,
            String fixWorkerName ,
            String fixWorkerTel ,
            String repairApplyID ,
            String comment ,
            String state
    ){
        return mApiService.repairAllot(
                userID ,
                fixWorkerID ,
                fixWorkerName ,
                fixWorkerTel ,
                repairApplyID ,
                comment ,
                state);
    }

    public Observable<BaseResponse> assessRepair(
            String assess ,
            String repairApplyID ,
            int levels
    ){
        return mApiService.assessRepair(
                assess ,
                repairApplyID ,
                levels);
    }


}
